﻿{% load i18n %}
{% extends "annotation_view.html" %}
{% block center %}
<div style="padding:20px">
<form action="/annotation/modify" method="post">
{% if author %}
<div><label>{% trans "Your Name" %}&nbsp;&nbsp;</label><input type="text" name="author" value="{{author}}"/></div>
{% else %}
<div><label>{% trans "Your Name" %}&nbsp;&nbsp;</label><input type="text" name="author" value="anonymous"/></div>
{% endif %}
{% if email %}
<div><label>{% trans "Your Email" %}&nbsp;&nbsp;</label>{{email}}<input type="hidden" name="email" value="{{email}}"/></div>
<div style="color:blue">{% trans "If you want your comments under anonymous. Please logout your " %}<a href="{{loginurl}}">{% trans "Google Account" %}.</a></div>
{% else %}
<div><label>{% trans "Your Email" %}&nbsp;&nbsp;</label>anonymous<input type="hidden" name="email" value="anonymous"/></div>
<div style="color:blue">{% trans "Anonymous comments will be overwritten. Please login to your " %}<a href="{{loginurl}}">{% trans "Google Account" %}.</a></div>
{% endif %}
{% if uri %}
<div><label>URI&nbsp;&nbsp;</label>{{uri}}<input type="hidden" name="uri" value="{{uri}}"/></div>
{% else %}
<div><label>URI&nbsp;&nbsp;</label><input type="text" name="uri"/></div>
{% endif %}
{% if tagid %}
<div><label>TAG&nbsp;&nbsp;</label>{{tagid}}<input type="hidden" name="tagid" value="{{tagid}}"/></div>
{% else %}
<div><label>TAG&nbsp;&nbsp;</label><input type="text" name="tagid"/></div>
{% endif %}
{% if item %}
<div><label>{% trans "Rating(0-100)" %}&nbsp;&nbsp;</label><input type="text" name="rating" value="{{item.rating}}"/></div>
<div><label>{% trans "Your Comments" %}<br></label><textarea name="content" cols="30" rows="6">{{item.content}}</textarea></div>
{% else %}
<div><label>{% trans "Rating(0-100)" %}&nbsp;&nbsp;</label><input type="text" name="rating"/></div>
<div><label>{% trans "Your Comments" %}<br></label><textarea name="content" cols="30" rows="6"></textarea></div>
{% endif %}
<input type="submit" value='{% trans "OK" %}'/>
</form>
</div>
{% endblock center %}